using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using MCWEBSITE.BUL;
using MCWEBSITE.ENTITY;

public partial class Modules_WebsiteFrontCommon_wucAbout : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.BindAboutUs();            
        }
    }

    protected void BindAboutUs()
    {
        string Language = "vi-VN";
        try
        {
            Language = Session["LanguageCode"].ToString();
        }
        catch (Exception ex)
        {
            throw ex;
        }
        string s = websiteStaticContentBUL.GetByLanguageAndCode(Language, "aboutus").Description.ToString();
        if (s.Length >= 500)
        {
            this.lblAboutUs.Text = s.Substring(0, 500);
        }
        else
        {
            this.lblAboutUs.Text = s;
        }
    }
}
